<!--{include manage_header}-->
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="/manage/order/index.php">订单管理</a></li>
    <li><a href="/manage/order/unpay.php">未付订单</a></li>
	<li style="float:right;  font-size:22px; ">
	 <a href="javascript::" style="padding-right:30px;color:#3B95C8;">
    <!--{if $_SESSION['ali_token']}-->${mb_strimwidth($login_user['realname'],0,10)}<!--{else}-->${mb_strimwidth($login_user['username'],0,10)}<!--{/if}-->
	</a> </li>
    </ul>
</div>
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<!--<div class="dashboard" id="dashboard">
		<ul>${mcurrent_order('unpay')}</ul>
	</div>-->
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                   <div class="formtitle"><span>未付订单</span></div>
				</div>
				<div class="sect">
					<form method="get">
						<span style="display:block; padding-bottom:4px; margin-left:25px;">订单编号：<input type="text" name="id" value="${htmlspecialchars($id)}" class="h-input"/>&nbsp;用户：<input type="text" name="uemail" class="h-input" value="${htmlspecialchars($uemail)}" >&nbsp;项目编号：<input type="text" name="team_id" class="h-input number" value="{$team_id}" ></span>
						<span style="display:block; padding-bottom:4px; margin-left:25px;">下单日期：<input type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="cbday" value="{$cbday}" /> - <input type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="ceday" value="{$ceday}" />&nbsp;付款日期：<input type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="pbday" value="{$pbday}" /> - <input type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="peday" value="{$peday}" />&nbsp;&nbsp;<input type="submit" value="筛选" class="formbutton"  style="padding:1px 6px;"/></span>
						
					</form>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="5" border="1" bordercolor="#89B4D6" class="coupons-table">
					<tr><th width="40">ID</th><th width="390">项目</th><th width="180">用户</th><th width="40" nowrap>数量</th><th width="50" nowrap>总款</th><th width="50" nowrap>余付</th><th width="50" nowrap>应付</th><th width="50" nowrap>递送</th><th width="50" nowrap>操作</th></tr>
					<!--{if is_manager(1)}-->
					<!--{loop $orders $index $one}-->
					<tr ${$index%2?'':'class="alt"'} id="order-list-id-{$one['id']}">
						<td>{$one['id']}</td>
						<!--{if $one['team_id']==9999999 }-->
						<td>
						<!--${
						$teamsids = Utility::ExtraDecode($one['cartinf']);
						$carttitle='';
                        foreach ($teamsids AS $key=>$value)
                        {
                         $teama = Table::Fetch('team', $key);
						$carttitle=$carttitle.$key.'(<a class="deal-title" href="/team.php?id='.$key.'" target="_blank">'.$teama['product'].'（'.$value.'件）'.'</a>)<br>';}}-->{$carttitle}</td>
						<!--{else}-->
						<td>{$one['team_id']}&nbsp;(<a class="deal-title" href="/team.php?id={$one['team_id']}" target="_blank">{$teams[$one['team_id']]['title']})</a></td>
						<!--{/if}-->
						<td><a href="/ajax/manage.php?action=userview&id={$one['user_id']}" class="ajaxlink">{$users[$one['user_id']]['email']}<br/>{$users[$one['user_id']]['username']}</a><!--{if Utility::IsMobile($users[$one['user_id']]['mobile'])}-->&nbsp;&raquo;&nbsp;<a href="/ajax/misc.php?action=sms&v={$users[$one['user_id']]['mobile']}" class="ajaxlink">短信</a><!--{/if}--></td>
						<td>{$one['quantity']}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['origin'])}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['credit'])}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['origin']-$one['credit'])}</td>
						<!--{if $one['team_id']==9999999 }-->
						<td>{$option_delivery['express']}${$one['express_id']?'Y':''}</td>						
						<!--{else}-->
						<td>{$option_delivery[$teams[$one['team_id']]['delivery']]}${$one['express_id']?'Y':''}</td>
						<!--{/if}-->						<td class="op" nowrap><a href="/ajax/manage.php?action=orderremove&id={$one['id']}" class="ajaxlink" ask="确定删除本订单？">删除</a></td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="9">{$pagestring}</tr>
					<!--{else}-->
					<!--{loop $orderss $index $one}-->
					<tr ${$index%2?'':'class="alt"'} id="order-list-id-{$one['id']}">
						<td>{$one['id']}</td>
						<!--{if $one['team_id']==9999999 }-->
						<td>
						<!--${
						$teamsids = Utility::ExtraDecode($one['cartinf']);
						$carttitle='';
                        foreach ($teamsids AS $key=>$value)
                        {
                         $teama = Table::Fetch('team', $key);
						$carttitle=$carttitle.$key.'(<a class="deal-title" href="/team.php?id='.$key.'" target="_blank">'.$teama['product'].'（'.$value.'件）'.'</a>)<br>';}}-->{$carttitle}</td>
						<!--{else}-->
						<td>{$one['team_id']}&nbsp;(<a class="deal-title" href="/team.php?id={$one['team_id']}" target="_blank">{$teamss[$one['team_id']]['title']})</a></td>
						<!--{/if}-->
						<td><a href="/ajax/manage.php?action=userview&id={$one['user_id']}" class="ajaxlink">{$userss[$one['user_id']]['email']}<br/>{$userss[$one['user_id']]['username']}</a><!--{if Utility::IsMobile($userss[$one['user_id']]['mobile'])}-->&nbsp;&raquo;&nbsp;<a href="/ajax/misc.php?action=sms&v={$users[$one['user_id']]['mobile']}" class="ajaxlink">短信</a><!--{/if}--></td>
						<td>{$one['quantity']}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['origin'])}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['credit'])}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['origin']-$one['credit'])}</td>
						<!--{if $one['team_id']==9999999 }-->
						<td>{$option_delivery['express']}${$one['express_id']?'Y':''}</td>						
						<!--{else}-->
						<td>{$option_delivery[$teamss[$one['team_id']]['delivery']]}${$one['express_id']?'Y':''}</td>
						<!--{/if}-->						<td class="op" nowrap><a href="/ajax/manage.php?action=orderremove&id={$one['id']}" class="ajaxlink" ask="确定删除本订单？">删除</a></td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="9">{$pagestrings}</tr>
					<!--{/if}-->
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include manage_footer}-->
